package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value = "MallPointsCouponModel", description = "积分买券")
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class MallPointsCouponModel implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "档期码")
	@TableField("TCDYTPID")
	private String scheduleId;

	@ApiModelProperty(value = "券种类")
	@TableField("TCDQTYPE")
	private String type;

    @ApiModelProperty(value = "券名称")
    @TableField("TQNAME")
    private String name;

    @ApiModelProperty(value = "券可兑换金额")
    @TableField("TCDQMONEY")
    private BigDecimal redeemMoney;

    @ApiModelProperty(value = "售价")
    @TableField("VQLSJ")
    private BigDecimal saleMoney;

    @ApiModelProperty(value = "开始日期")
    @TableField("TCDSTARTDATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "结束日期")
    @TableField("TCDENDDATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

	@ApiModelProperty(value = "已售数量")
	@TableField("LQSL")
	private Integer saleNum;

	@ApiModelProperty(value = "剩余数量")
	@TableField("SYSL")
	private Integer leftNum;

    @ApiModelProperty(value = "剩余比例")
    @TableField("SYBL")
    private Integer leftPercent;

//    @ApiModelProperty(value = "档期名称")
//    @TableField("tpiname")
//    private String tpiname;
//
//    @ApiModelProperty(value = "库存数")
//    @TableField("tcdsczs")
//    private String tcdsczs;
//
//    @ApiModelProperty(value = "发券门店")
//    @TableField("tchyfqmkt")
//    private String tchyfqmkt;
//
//    @ApiModelProperty(value = "图片ID")
//    @TableField("vqlqpicid")
//    private String vqlqpicid;
//
//    @ApiModelProperty(value = "使用说明")
//    @TableField("vqlqsydec")
//    private String vqlqsydec;
//
//    @ApiModelProperty(value = "使用详情")
//    @TableField("vqlqsyxq")
//    private String vqlqsyxq;
}
